<?php

namespace app\api\controller;

use app\common\library\Sms;
use think\Controller;
use think\Request;

class Verify extends Base
{
    /**
     * index 发送短信验证码
     * @return \think\response\Json
     * @author 清凉Tea <973110519@qq.com>
     */
    public function index()
    {
        $mobile = input('post.mobile');
        $action = input('post.action', 'reset');
        $res = (new \app\api\model\Verify())->send($mobile,$action);
        return self::apiResp($res);
    }
}
